
///////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////// Table A8 - Polarization //////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

use Data_OPO_Master.dta, clear
keep if use==1

summarize dist_pet_resp,detail


** Polarization + Panel Median

reg sc_cert_granted dist_pet_resp  coa_panel_med_cf  i.sc_term i.coa_circuit  if use==1 & civil==1, cluster(sc_term)
outreg2 dist_pet_resp  coa_panel_med_cf  coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA8.tex", nocons replace tex dec(3) drop(i.sc_term i.coa_circuit) sortvar(dist_pet_resp  coa_panel_med_cf   coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln)

reg sc_cert_granted dist_pet_resp  coa_panel_med_cf  coa_enbanc coa_panel_dissent coa_lc_reversed dismissed  i.sc_term i.coa_circuit  if use==1 & civil==1, cluster(sc_term)
outreg2 dist_pet_resp  coa_panel_med_cf  coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA8.tex", nocons append tex dec(3) drop(i.sc_term i.coa_circuit) sortvar(dist_pet_resp  coa_panel_med_cf   coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln)

reg sc_cert_granted dist_pet_resp  coa_panel_med_cf  sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln i.sc_term i.coa_circuit  if use==1 & civil==1, cluster(sc_term)
outreg2 dist_pet_resp  coa_panel_med_cf  coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA8.tex", nocons append tex dec(3) drop(i.sc_term i.coa_circuit) sortvar(dist_pet_resp  coa_panel_med_cf   coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln)

reg sc_cert_granted dist_pet_resp  coa_panel_med_cf  coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit  if use==1 & civil==1, cluster(sc_term)
outreg2 dist_pet_resp  coa_panel_med_cf  coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA8.tex", nocons append tex dec(3) drop(i.sc_term i.coa_circuit) sortvar(dist_pet_resp  coa_panel_med_cf   coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln)

summarize dist_pet_resp if civil==1, detail
margins, at(dist_pet_resp=(.1914372  1.587391   ))

